<?php

Class Test_input extends Controller
{
    function __construct()
    {
        parent::__construct();
        parent::__user();
        
        loader::base_helper('form');
        loader::base_lib('session');
        loader::database();              
    }                               
    
    function index()
    {
        $this->title_tag = 'Input and Session Class Test !! ';
        $this->head_tag  = loader::source_css('example'); 
        
        session::set('test','this is a test session variable !');
        
        $this->body_tag  = session::get('test').'<br /><br />';
        
        if(input::post('username'))
        $this->body_tag .= '<b>username: </b>' . input::post('username');
        
        $this->body_tag .= form_open('test/test_input');
        $this->body_tag .= form_input('username', input::post('username'));
        $this->body_tag .= form_submit('send','Send');
        $this->body_tag .= form_close();
        
        loader::app_view('view_base');
    }

} //end of the class.
  
  
?>
